pp108 : Hiding Controls in Tables and Groupboxes

Hiding Controls in Tables and Groupboxes

This topic describes the procedure to hide or display controls in the Table and Groupbox controls.

Grouping controls such as Group, Groupbox, Tab Page, and Table can contain multiple controls. In some cases, you may need to hide some controls in a grouping control and display only selected ones. The Column Chooser feature enables you to specify the controls to display during run time, without having to delete the controls.

You can thus specialize an existing XForm according to requirement. The Column Chooser feature is available both at run time and design time for the Table control, and at design time for the Group, Groupbox, and Tab Page controls.

  1. Open the XForm in the XForms Designer.
  2. Right-click the Groupbox or Table control, and select Column Chooser. The Columns dialog box appears and displays all constituent controls. By default, all controls are selected and display a check mark.
  3. Make appropriate modifications:
    • Click Checkboxes to hide or display the check boxes in a Table control. This option is available only at run time for a Table control.

      Note:
      Alternatively, for the Table control, you can clear the Checkboxes check box in the Table - Properties dialog box to hide the column.

    • Click a control to select or clear the control. Clearing the check mark hides the control.

      Note:
      It is not possible to hide all columns of a Table control at run time, and an alert displays if you try to hide the columns. Also,at run time, the Column Chooser of the Table control displays only the columns that were selected during design time.

    • Click the Columns check box to select or clear all controls. This option is enabled only at design time. The controls are hidden or displayed depending on the options you select.
  4. Click .

The settings specified for the controls are saved and the selected controls display.